import cv2


# （1）彩色图片直接阈值
def test1():
    #  读取图片
    src = cv2.imread('card.png')

    # 返回阈值和二值化图
    threshold, bin_img = cv2.threshold(src, 117, 255, cv2.THRESH_BINARY);
    print(">>>>>> ", threshold)
